package com.dq.controller.sys;

import com.dq.controller.AbstractController;
import com.dq.controller.vo.Server;
import com.dq.vo.Vo;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @创建人 gewenzhen
 * @创建时间 2019/9/10
 * @描述
 */
@Api(description = "后台系统信息")
@RestController
@RequestMapping("/sys")
public class SystemController extends AbstractController {
    @GetMapping(value = "/monitor/server")
    public Vo server() throws Exception {
        Server server = new Server();
        server.copyTo();
        return new Vo(server);
    }

}
